<?php

$page->title = 'Welcome';
$page->date = '2012-05-24';
$page->css('http://nrhc-pages.northrockhill.com/web-welcome/web-welcome.css');

$yaml = new Yaml('data/staff.yml');
$staff = $yaml->get();

?>

<section>

    <section class="intro">
      <hgroup>
        <h1 class="page-title">Welcome</h1>
        <p class="dropHead">to North Rock Hill Church</p>
      </hgroup>
      <p>We are thrilled that you have taken time to check us out. NRHC is an upbeat casual church in Rock Hill, SC.  We started in 1998 as a group of Christ-followers on the journey together to engage God and others.  We truly believe that when God gets involved, the landscape of our friends, communities, and nations will be transformed.</p>
    </section><!-- /intro -->

    <hr class="plain" />

    <h2>Meet our staff</h2>

    <div class="photo">

      <?php foreach($staff as $member): ?>
      <?php $anchor = preg_replace("/[^a-z0-9.]+/i", "", $member->name); ?>
      <a href="<?php echo url( '/about-us/staff#' . $anchor ) ?>">
        <img class="photo" src="<?= $member->img; ?>" alt="<?= $member->name; ?>" width="150" height="150" />
      </a>
      <?php endforeach; ?>

    </div>

</section>
<!-- /welcome -->
